package com.lagace.spark.twitter.local;

import java.util.Properties;

public class LocalTwitterPreferences {

	private Properties props;

	public LocalTwitterPreferences(Properties props) {
	    this.props = props;
	}

	public LocalTwitterPreferences() {
	    this.props = new Properties();
	}

	public Properties getProperties() {
	    return props;
	}

	public String getUsername() {
	    return props.getProperty("username");
	}

	public void setUsername(String username) {
	    props.setProperty("username", username);
	}
	
	public String getPassword() {
        return props.getProperty("password");
    }

    public void setPassword(String password) {
        props.setProperty("password", password);
    }

	public String getRefreshTime() {
		return props.getProperty("refresh");
	}
	
	public void setRefreshTime(String refresh) {
		props.setProperty("refresh", refresh);
	}
}